package com.itgungnir.designpattern.prototype;

public class Shape implements Cloneable {
	protected String type;

	@Override
	protected Object clone() {
		Shape shape = null;
		try {
			shape = (Shape) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return shape;
	}

	public void introduce() {
		System.out.println("This is a " + type);
	}
}